<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
   <h:head>
      <title>Welcome</title>
   </h:head>
   <h:body>
   <h3>#{msgs.categoriHead1} #{userBean.currentUser.userName} #{msgs.categoriHead2}</h3>
   <h:form>
	   <h:dataTable border="1" value="#{mangeBean.categoris}" var="categori">
		  	<h:column>
		  		<f:facet name="header">
		  			Categorier
		  		</f:facet>
		  			<h:commandLink value="#{categori}" action="#{mangeBean.selectCategori(categori)}"/> 		
		  	</h:column>
	  	</h:dataTable>
	  	<h:commandButton value="Opret categori" action="#{mangeBean.newCategori}"></h:commandButton>
   </h:form>
   </h:body>
</html>